//
//  GTStatusCollectionCell.swift
//  swiftWEIbo
//
//  Created by mac－gt on 15/11/28.
//  Copyright © 2015年 mac－gt. All rights reserved.
//

import UIKit

class GTStatusCollectionCell: UICollectionViewCell {
    private lazy var iconView:UIImageView={
        let imgView=UIImageView()
        imgView.contentMode=UIViewContentMode.ScaleAspectFill
        imgView.clipsToBounds=true
        return imgView
    }()
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUp()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    func setUp(){
        contentView.addSubview(iconView)
        iconView.ff_Fill(contentView)
    }
    var imageUrl:NSURL?{
        didSet{
            iconView.sd_setImageWithURL(imageUrl)
        }
    }
}
